package com.atguigu.gmall.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author 卡尼奶
 * @Date 2022/5/31 10:37
 * @Version 1.0
 */
@Controller
public class LoginController {

    @GetMapping("/login.html")
    public String loginPage(@RequestParam("originUrl")String originUrl, Model model){

        model.addAttribute("originUrl",originUrl);
        return "login";
    }
}
